package com.star.Factory;

import com.star.dao.UserDao;
import com.star.dao.impl.UserDaoImpl;

/**
 * @BelongsProject: study_-spring
 * @BelongsPackage: com.star.Factory
 * @Author: lanxx
 * @CreateTime: 2025-06-24  15:53
 * @Description: TODO
 * @Version: 1.0
 */
public class UserDaoFactoryBean implements FactoryBean<UserDao> {
    //代替原始实例工厂中创建对象的方法
    public UserDao getObject() throws Exception {
        return new UserDaoImpl();
    }
    //返回所创建类的Class对象
    public Class<?> getObjectType() {
        return UserDao.class;
    }
}
